<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
<head>
<title>工作空间</title>
<jsp:include page="/WEB-INF/jsp/common/basic.jsp"></jsp:include>
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/static/style/css/skins/_all-skins.min.css">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/static/plugin/table/bootstrap-table.css">
</head>

<body class="sidebar-mini skin-red-light"
	style="height: auto; min-height: 100%;">
	<div class="wrapper" style="height: auto; min-height: 100%;">

		<!-- 头部 -->
		<jsp:include page="/WEB-INF/jsp/common/top.jsp"></jsp:include>


		<!-- 左边 -->
		<%@ include file="/WEB-INF/jsp/common/left.jsp"%>


		<!-- 内容区域 -->
		<div class="content-wrapper" style="min-height: 1126px;">
			<!-- Content Header (Page header) -->
			<section class="content-header">
				<h1>
					帖子管理 <small>添加列表</small>
				</h1>
				<ol class="breadcrumb">
					<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
					<li><a href="#">Examples</a></li>
					<li class="active">Blank page</li>
				</ol>
			</section>

			<!-- Main content -->
			<section class="content">

				<div class="row">
					<!-- right column -->
					<div class="col-md-12">
						<!-- Horizontal Form -->
						<div class="box box-info">
							<!-- form start -->
							<form id="productGroup" class="form-horizontal"
								action="${pageContext.request.contextPath}/topics/save"
								method="post">

								<input id="id" name="id" type="hidden" value="" /> <input
									type="hidden" name="_method" value="POST">

								<div class="box-body">
									<div class="col-md-6">
										<div class="form-group">
											<label for="name" class="col-sm-2 control-label">帖子ID</label>
											<div class="col-sm-10">
												<input id="id" name="id" class="form-control"
													data-bv-notempty="true" type="text" value="" />
											</div>
										</div>
									</div>

									<div class="col-md-6">
										<div class="form-group">
											<label for="name" class="col-sm-2 control-label">帖子标题</label>
											<div class="col-sm-10">
												<input id="title" name="title" class="form-control"
													data-bv-notempty="true" type="text" value="" />
											</div>
										</div>
									</div>
									<div class="col-md-6">
										<div class="form-group">
											<label for="name" class="col-sm-2 control-label">帖子内容</label>
											<div class="col-sm-10">
												<input id="content" name="content" class="form-control"
													data-bv-notempty="true" type="text" value="" />
											</div>
										</div>
									</div>

									<div class="col-md-6">
										<div class="form-group">
											<label for="num" class="col-sm-2 control-label">评论数</label>
											<div class="col-sm-10">
												<input id="commentcount" name="commentcount" class="form-control"
													data-bv-notempty="true" type="text" value="" />
											</div>
										</div>
									</div>
									<div class="col-md-6">
										<div class="form-group">
											<label for="name" class="col-sm-2 control-label">帖子状态</label>
											<div class="col-sm-10">
												<input id="status" name="status" class="form-control"
													data-bv-notempty="true" type="text" value="" />
											</div>
										</div>
									</div>

									<div class="col-md-6">
										<div class="form-group">
											<label for="num" class="col-sm-2 control-label">发帖时间</label>
											<div class="col-sm-10">
												<div class="input-group date form_datetime col-sm-10"
													data-date="" data-date-format="yyyy MM dd "
													data-link-field="dtp_input2" data-link-format="yyyy-mm-dd">
													<input class="form-control" size="16" type="text"
														name="topictime" value="" readonly> <span
														class="input-group-addon"><span
														class="glyphicon glyphicon-calendar"></span></span>
												</div>
												<input type="hidden" id="dtp_input2" value="" />
											</div>
										</div>
									</div>
									<div class="col-md-6">
										<div class="form-group">
											<label for="num" class="col-sm-2 control-label">精品帖子</label>
											<div class="col-sm-10">
												<input id="nicetopic" name="nicetopic" class="form-control"
													data-bv-notempty="true" type="text" value="" />
											</div>
										</div>


									</div>
									<div class="col-md-6">
										<div class="form-group">
											<label for="num" class="col-sm-2 control-label">用户ID</label>
											<div class="col-sm-10">
												<input id="user_id" name="user.id" class="form-control"
													data-bv-notempty="true" type="text" value="" />
											</div>
										</div>


									</div>
									<div class="col-md-6">
										<div class="form-group">
											<label for="num" class="col-sm-2 control-label">标签ID</label>
											<div class="col-sm-10">
												<input id="label_id" name="label.id" class="form-control"
													data-bv-notempty="true" type="text" value="" />
											</div>
										</div>
									</div>

								</div>
								<!-- /.box-body -->
								<div class="box-footer">
									<button type="reset" class="btn btn-default btn-flat">重置</button>
									<button type="submit" class="btn btn-success btn-flat">保存</button>
								</div>

							</form>
						</div>


					</div>

				</div>

			</section>
			<!-- /.content -->
		</div>
		<!-- /.content-wrapper -->


		<!-- 底部 -->
		<jsp:include page="/WEB-INF/jsp/common/bottom.jsp"></jsp:include>

		<!-- 设置 -->
		<jsp:include page="/WEB-INF/jsp/common/setting.jsp"></jsp:include>
	</div>


	<!-- SlimScroll -->
	<script
		src="${pageContext.request.contextPath}/static/plugin/jquery-slimscroll/jquery.slimscroll.min.js"></script>
	<!-- FastClick -->
	<script
		src="${pageContext.request.contextPath}/static/plugin/fastclick/fastclick.js"></script>

	<!-- 引用表格插件 -->
	<script
		src="${pageContext.request.contextPath}/static/plugin/table/bootstrap-table.js"></script>
	<script
		src="${pageContext.request.contextPath}/static/plugin/table/bootstrap-table-zh-CN.js"></script>
	<script
		src="${pageContext.request.contextPath}/static/style/js/bootstrap-datetimepicker.js"></script>
	<script
		src="${pageContext.request.contextPath}/static/style/js/bootstrap-datetimepicker.fr.js"></script>
	<script>
		$(function() {
			$('.sidebar-menu').tree();

		});
		$(".form_datetime").datetimepicker({
			format : 'yyyy-mm-dd hh:ii'
		});
	</script>
</body>
</html>